/*
 * PBBxmlDecoder.java
 *
 * Created on June 11, 2007, 8:32 PM
 *
 * just a data grouping.  meant to be used in an array.  this will be parsed in from a config file.
 *
 *Copyright 2007-2008 Jon W Huss III

   Licensed under the Apache License, Version 2.0 (the "License");
   you may not use this file except in compliance with the License.
   You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
 *
 */

package proteinboxbot;

/**
 *
 * @author Jon Huss
 */
public class PBBxmlDecoder {
    
    String address;
    String name;
    boolean useReplace;
    String[] replaceCode;
    
    /** Creates a new instance of PBBxmlDecoder */
    public PBBxmlDecoder() {
        replaceCode = new String[2];
        
    }
    
    public void setAddress(String a){
        address = a;
    }
    public void setName(String a){
        name = a;
    }
    public void setReplaceCode(String from, String to){
        replaceCode[0] = from;
        replaceCode[1] = to;
    }
    
    public String getReplaceCodeFrom(){
        return replaceCode[0];
    }
    public String getReplaceCodeTo(){
        return replaceCode[1];
    }
    public void setUseReplace(boolean a){
        useReplace = a;
    }
    public boolean getUseReplace(){
        return useReplace;
    }
    public String getAddress(){
        return address;
    }
    public String getName(){
        return name;
    }
}
